package com.light.roller;

import java.util.ArrayList;

import org.anddev.andengine.engine.Engine;
import org.anddev.andengine.opengl.buffer.BufferObjectManager;

import android.content.Intent;

import com.badlogic.gdx.math.Vector2;
import com.huw.debuger.Debugger;

public class Roller_S23 extends Roller{
	
	@Override
	public Engine onLoadEngine() {

		Vector2 cameraCenter = new Vector2( 892, 350);
		Vector2 playerInitialPositon = cameraCenter.cpy();
		Vector2 doorPosition = new Vector2(531, -209);
		CameraVertexList = new ArrayList<Vector2>();
		CameraVertexList.add(new Vector2(895,70));
		CameraVertexList.add(new Vector2(100,0));
		stage = new Stage_S23(this);
		stage.onLoadEngine();
		Engine engine = initialize(cameraCenter, playerInitialPositon,doorPosition,Direction.UP);
		Debugger.HIDE_STATIC_WALL = true;
		return engine;
	}
	
	public void reset()
	{
		ResourceManager.unLoadAllSounds();
		stage.removeStoper(scene, physicsWorld);
		Roller_S23.this.finish();
		Roller_S23.this.startActivity(new Intent(Roller_S23.this, Roller_S23.class));
		BufferObjectManager.getActiveInstance().clear();
	
	}
	
	@Override
	protected void nextStageSetting()
	{
		Roller_S23.this.finish();
		Roller_S23.this.startActivity(new Intent(Roller_S23.this, Roller_S24.class));
		BufferObjectManager.getActiveInstance().clear();
		
	}
	
	

}
